package action;

import java.io.IOException;
import java.io.PrintWriter;
import java.text.ParseException;

import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import org.apache.struts2.ServletActionContext;

import service.tAreaService;

import entity.tArea;

public class AddtAreaAction {
	
	//private tArea tarea;
	private String id;
	private String name;
	
	private tAreaService tareaService;
	
	public String add() throws IOException, ParseException {
		
		ServletResponse response = ServletActionContext.getResponse();
		HttpSession session = ServletActionContext.getRequest().getSession();
		response.setCharacterEncoding("UTF-8");
		PrintWriter out = response.getWriter();
		
		//tarea.setId("11");
		//tarea.setName("aaa");
		
	//	tareaService.add("13","aaa");
		
		return null;
	}

	//public tArea getTarea() {
	///	return tarea;
	//}

	//public void setTarea(tArea tarea) {
	//	this.tarea = tarea;
	//}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public tAreaService getTareaService() {
		return tareaService;
	}

	public void setTareaService(tAreaService tareaService) {
		this.tareaService = tareaService;
	}
	
	
	
}
